package com.ruoyi.erp.mapper;

import java.util.List;

import com.ruoyi.erp.domain.SearchMonthBill;
import com.ruoyi.erp.domain.StaffingMonthBill;
import org.apache.ibatis.annotations.Param;

/**
 * 外派月账单Mapper接口
 * 
 * @author sauger
 * @date 2022-03-17
 */
public interface StaffingMonthBillMapper 
{
    /**
     * 查询外派月账单
     * 
     * @param id 外派月账单主键
     * @return 外派月账单
     */
    public StaffingMonthBill selectStaffingMonthBillById(Integer id);

    /**
     * 查询外派月账单列表
     * 
     * @param staffingMonthBill 外派月账单
     * @return 外派月账单集合
     */
    public List<StaffingMonthBill> selectStaffingMonthBillList(StaffingMonthBill staffingMonthBill);

    /**
     * 新增外派月账单
     * 
     * @param staffingMonthBill 外派月账单
     * @return 结果
     */
    public int insertStaffingMonthBill(StaffingMonthBill staffingMonthBill);

    /**
     * 修改外派月账单
     * 
     * @param staffingMonthBill 外派月账单
     * @return 结果
     */
    public int updateStaffingMonthBill(StaffingMonthBill staffingMonthBill);

    /**
     * 删除外派月账单
     * 
     * @param id 外派月账单主键
     * @return 结果
     */
    public int deleteStaffingMonthBillById(Integer id);

    /**
     * 批量删除外派月账单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStaffingMonthBillByIds(String[] ids);

    /**
     * 批量插入
     * @param bills
     * @return
     */
    public int batchInsertStaffingMonthBill(@Param("bills") List<StaffingMonthBill> bills);

    public List<StaffingMonthBill> searchStaffingMonthBill(SearchMonthBill search);

    public List<StaffingMonthBill> selectStaffingMonthBillByIds(String[] ids);
}
